module.exports = class extends saas.controller {
  async uploadAction() {
    console.log('upload')
    const file = this.request.body;
    console.log(file);

    let base64 = Buffer.from(file.face[0].data, 'binary').toString('base64');

    base64 = 'data:' + file.face[0].mimetype + ';base64,' + base64;


    return this.success(base64);
  }
}